package com.cabinet.common.runner;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Running {
	/**
	 * 启动dubbo容器
	 * 
	 * @param args
	 * @throws IOException
	 */
	@SuppressWarnings("resource")
	public static void main(String[] args) throws IOException {
		System.out.println("=============dubbo启动开始！===============");
		// com.alibaba.dubbo.container.Main.main(args);
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "classpath*:application.xml" });
		context.start();
		// 为保证服务一直开着，利用输入流的阻塞来模拟
		System.in.read();
	}
}
